package com.mikey.common;

/**
 * @author :Mikey
 * @description :
 * @create :2022-06-28 20:59:00
 */
public class ApiResult {
    public boolean flag;
    public String msg;
    public Object data;

    public ApiResult(boolean flag, String msg, Object data) {
        this.flag = flag;
        this.msg = msg;
        this.data = data;
    }

    public static ApiResult success(boolean flag, String msg, Object data){
        return new ApiResult(flag,msg,data);
    }

    public static ApiResult error(boolean flag, String msg, Object data){
        return new ApiResult(flag,msg,data);
    }
}
